.chart-detail {
  padding: 24px;
  height: calc(100vh - 100px);
  display: flex;
  gap: 24px;
  background-color: #f5f5f5;
}

.chart-detail-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chart-info {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.chart-info-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-size: 16px;
  color: #666;
}

.chart-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chart-tag {
  padding: 4px 12px;
  background: #f0f0f0;
  border-radius: 16px;
  font-size: 14px;
  color: #666;
}

.chart-description {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.chart-preview {
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex: 4;
}

.chart-code {
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-height: 0;
}

.chart-preview-header,
.chart-code-header {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-preview-title,
.chart-code-title {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
}

.chart-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
}

.chart-code-title {
  font-size: 16px;
  font-weight: 500;
  color: #344767;
}

.chart-code-actions {
  display: flex;
  gap: 8px;
}

.chart-run-btn {
  padding: 6px 16px;
  background: #344767;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chart-run-btn:hover {
  background: #344767;
}

.chart-preview-content,
.chart-code-content {
  flex: 1;
  min-height: 0;
  padding: 16px;
  overflow: auto;
}

#monaco-editor {
  height: 100%;
  min-height: 300px;
}

#chart-container {
  height: 100%;
  min-height: 300px;
}

.chart-code-login-required {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.chart-code-login-required .login-btn {
  margin-top: 20px;
}

.chart-copy-btn {
  margin-left: 10px;
  padding: 4px 15px;
  font-size: 14px;
  border-radius: 4px;
  background-color: #1890ff;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.chart-copy-btn:hover {
  background-color: #40a9ff;
}

.chart-copy-btn:active {
  background-color: #096dd9;
}
